# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time        : 2020/12/25 17:07
@Author      : Albert Darren
@Contact     : 2563491540@qq.com
@File        : abc.py
@Version     : Version 1.0.0
@Description : TODO
@Created By  : PyCharm
"""
from numpy import log
from sympy.abc import x
# 导入所有的拉丁和希腊字母符号直接使用abc模块
from sympy import symbols, factor, expand, factorint, init_printing, sin, exp
# 定义其他符号变量需要导入symbols函数
init_printing(use_unicode=True, use_latex=True)
# var = symbols('var')
# expr = var ** 2
# factored_fx = (x - 2) * (x + 3)
# 展开形式输出
# print(expand(factored_fx))
# expanded_fx = x ** 2 + x - 6
# 因式分解形式输出
# print(factor(expanded_fx))
# 整数质因子分解
# integer = 6006
# print(factorint(integer))
fx=sin(x)*exp(x)
print(fx.diff())